﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Neo4jRestSharp.Neo4jObjectServices;

namespace Neo4jRestSharp
{
	public class GraphDatabaseService
	{
		private Uri restUri;
		private NodeObjectServices nodeObjectServices;

		public GraphDatabaseService(Uri restUri)
		{
			this.restUri = restUri;	
			this.nodeObjectServices = new NodeObjectServices(restUri);
		}

		public T CreateNode<T>() where T : Node, new()
		{
			T node = this.nodeObjectServices.CreateNode<T>();			
			return node;
		}
	}
}
